package
{
	import com.jumpeye.flashEffNano.symbol.FENSAlpha;
	import com.jumpeye.transitions.easing.Strong;
	import com.jumpeye.transitions.easing.StrongEase;
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author 杨伟华
	 */
	public class Main extends Sprite
	{
		[Embed(source='../img/Hydrangeas.jpg')]
		private var Hydrangeas:Class;
		private var import_Strong:Strong;
		private var import_StrongEase:StrongEase;
		public function Main():void
		{
			if (stage)
				init();
			else
				addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e:Event = null):void
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			// entry point
			var pic1:DisplayObject = new Hydrangeas();
			addChild(pic1);
			var en:FlashEffNano = new FlashEffNano();
			en.showAutoPlay = true;
			addChild(en);
			en.target = pic1;
			var myPattern:FENSAlpha = new FENSAlpha();
			myPattern.tweenDuration = 0.5;
			en.showTransition = myPattern;
			en.setTransition(myPattern, "show")
		}
	
	}

}